package com.vincent.dao;

import com.vincent.model.HotSearch;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("hotSearchMapper")
public interface HotSearchMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(HotSearch record);

    int insertSelective(HotSearch record);

    HotSearch selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(HotSearch record);

    int updateByPrimaryKey(HotSearch record);

    /**
     * 选择前几个热门搜索
     * @param num
     * @return
     */
    List<String> selectTopNum(@Param("num") int num);
}